<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        table{
            margin: 0 auto;
            
        }
        tr{
            width: 300px;
            height: 40px;
            border: 1px solid black;
        }
        td{
            width: 100px;
            height: 20px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
    
<script>
    let mz = prompt("请输入姓名")
    let nl = prompt("请输入年龄")
    let xb = prompt("请输入性别")
    document.write(`<table>
        <tr>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
        </tr>
        <tr>
            <td>${mz}</td>
            <td>${nl}</td>
            <td>${xb}</td>
        </tr>
    </table>`)
        
    
</script>
</body>
</html>